#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdlib>
#include <math.h>
using namespace std;

long long int nDivisores(long long int a);
long long int t(long long int n);

 int main()
{
    long long int b = 0;
    bool flag = true;
    long long int n = 1;

    do
    {

        b = nDivisores(t(n));
        cout << t(n) << "..... (" << b << ")" << endl;
         flag = b < 5000;
        n++;

        if (b>500) system("pause");


    } while(flag);




    return 0;
}

long long int nDivisores(long long int a)
{

     long long int sum = 1;

    long long int cant[1000];
    for (long long int j = 0; j< 1000 ;j++)
    {
        cant[j] = 0;
    }

    long long int i = 2;
    long long int h = 0;
    bool primeraVez = true;
    while (a != 1)
    {

        if (a % i == 0)
        {
            if(primeraVez)h++;
            cant[h] = cant[h] + 1;
            a = a/i;
            primeraVez = false;

        }
        else
        {
primeraVez = true;
            i++;
        }
    }

    for (long long int j = 0; j<1000;j++)
    {
        sum = sum*(cant[j] +1);
    }

    return sum;

}

long long int t(long long int n)
{
    return n*(n+1)/2;
}

